package com.toplabs.unashu.service;

import com.toplabs.unashu.dto.PageDto;
import com.toplabs.unashu.entity.Type;
import org.apache.ibatis.javassist.NotFoundException;

import java.util.List;


/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ityanger
 * @since 2020-08-23
 */
public interface TypeService {
    int insertType(Type type);

    Type selectType(Type type);

    List<Type> listType();

    PageDto<Type> listTypeBlog(Integer pageNum, Integer pageSize);

    PageDto<Type> listTypeBlogCount(Integer pageNum, Integer pageSize);

    void updateType(Type type) throws NotFoundException;

    int deleteType(Long id);
}
